package com.ruoyi.order.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单项/快照 对象 sy_order_item
 * 
 * @author ruoyi
 * @date 2024-12-20
 */
public class SyOrderItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单项ID */
    private String itemId;

    /** 订单ID */
    @Excel(name = "订单ID")
    private String orderId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private String productId;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String productImg;

    /** skuID */
    @Excel(name = "skuID")
    private String skuId;

    /** sku名称 */
    @Excel(name = "sku名称")
    private String skuName;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private BigDecimal productPrice;

    /** 购买数量 */
    @Excel(name = "购买数量")
    private Long buyCounts;

    /** 商品总金额 */
    @Excel(name = "商品总金额")
    private BigDecimal totalAmount;

    /** 加入购物车时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "加入购物车时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date basketDate;

    /** 购买时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "购买时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date buyTime;

    /** 评论状态： 0 未评价  1 已评价 */
    @Excel(name = "评论状态： 0 未评价  1 已评价")
    private Long isComment;

    /** 订单类型商品 课程 */
    @Excel(name = "订单类型商品 课程")
    private String orderType;

    public void setItemId(String itemId) 
    {
        this.itemId = itemId;
    }

    public String getItemId() 
    {
        return itemId;
    }
    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }
    public void setProductId(String productId) 
    {
        this.productId = productId;
    }

    public String getProductId() 
    {
        return productId;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setProductImg(String productImg) 
    {
        this.productImg = productImg;
    }

    public String getProductImg() 
    {
        return productImg;
    }
    public void setSkuId(String skuId) 
    {
        this.skuId = skuId;
    }

    public String getSkuId() 
    {
        return skuId;
    }
    public void setSkuName(String skuName) 
    {
        this.skuName = skuName;
    }

    public String getSkuName() 
    {
        return skuName;
    }
    public void setProductPrice(BigDecimal productPrice) 
    {
        this.productPrice = productPrice;
    }

    public BigDecimal getProductPrice() 
    {
        return productPrice;
    }
    public void setBuyCounts(Long buyCounts) 
    {
        this.buyCounts = buyCounts;
    }

    public Long getBuyCounts() 
    {
        return buyCounts;
    }
    public void setTotalAmount(BigDecimal totalAmount) 
    {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getTotalAmount() 
    {
        return totalAmount;
    }
    public void setBasketDate(Date basketDate) 
    {
        this.basketDate = basketDate;
    }

    public Date getBasketDate() 
    {
        return basketDate;
    }
    public void setBuyTime(Date buyTime) 
    {
        this.buyTime = buyTime;
    }

    public Date getBuyTime() 
    {
        return buyTime;
    }
    public void setIsComment(Long isComment) 
    {
        this.isComment = isComment;
    }

    public Long getIsComment() 
    {
        return isComment;
    }
    public void setOrderType(String orderType) 
    {
        this.orderType = orderType;
    }

    public String getOrderType() 
    {
        return orderType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("itemId", getItemId())
            .append("orderId", getOrderId())
            .append("productId", getProductId())
            .append("productName", getProductName())
            .append("productImg", getProductImg())
            .append("skuId", getSkuId())
            .append("skuName", getSkuName())
            .append("productPrice", getProductPrice())
            .append("buyCounts", getBuyCounts())
            .append("totalAmount", getTotalAmount())
            .append("basketDate", getBasketDate())
            .append("buyTime", getBuyTime())
            .append("isComment", getIsComment())
            .append("orderType", getOrderType())
            .toString();
    }
}
